<?php 
namespace app\dashboard\validate;
use think\Validate;
class Account extends Base
{
    protected $rule = [
        'phone'     => 'require|mobile|intconvert:phone',
        'driver_name'     => 'require|strtrim:driver_name',
        'car_no'          => 'require|strtrim:car_no',
        'weixin_no'     => 'intconvert:weixin_no',
    ];

    protected $message = [
        'phone'     => '请填写手机号',
        'driver_name'     => '请填写司机姓名',
        'car_no'          => '请填写车辆号',
        'weixin_no'     => '请填写微信号',
    ];
    
    // protected $scene = [
    // ];
}

 ?>
